package com.lcp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lcp.entity.TcmKnowledge;

import java.util.List;
import java.util.Map;

public interface TcmKnowledgeService {
    TcmKnowledge getById(Long id);
    
    IPage<TcmKnowledge> page(Integer pageNum, Integer pageSize, String category, String keyword);
    
    TcmKnowledge create(TcmKnowledge knowledge);
    
    TcmKnowledge update(TcmKnowledge knowledge);
    
    void delete(Long id);
    
    void incrementViewCount(Long id);
    
    void incrementLikeCount(Long id);
    
    List<Map<String, Object>> getCategoryStatistics();
    
    List<TcmKnowledge> getHotKnowledge(Integer limit);
    
    List<TcmKnowledge> getRelatedKnowledge(Long id, Integer limit);
} 